package com.xuecheng.content.model.dto;

import com.xuecheng.base.exception.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author shiminghui
 * @date 2024/8/2 16:10
 * @description: 修改课程信息的参数
 */
@Data
@ApiModel(value = "EditCourseDto", description = "修改课程信息的参数")
public class EditCourseDto extends AddCourseDto {
    @ApiModelProperty(value = "课程id", required = true)
    @NotNull(message = "课程id不为空", groups = {ValidationGroups.Update.class})
    private Long id;
}
